<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:pom="http://www.pomodorotechnique.com/server">
	<xsl:param name="username" />
	<xsl:param name="year" />
	<xsl:param name="month" />
	<xsl:param name="day" />
	<xsl:param name="workitem" />
	<xsl:param name="pomodoro" />
	<xsl:param name="message" />
	<xsl:template match="/pom:users">
		<xsl:copy-of select="pom:user[@id = $username]/pom:plan[substring(@date,1,4) = $year and substring(@date,6,2) = $month and substring(@date,9,2) = $day]/pom:workitem[$workitem]/pom:pomodoro[$pomodoro]/pom:message[$message]" />
	</xsl:template>
</xsl:stylesheet>